import Vue from 'vue'
import Router from 'vue-router'
import order from '@/components/order'
import track from '@/components/track'
import album from '@/components/album'
import All from '@/components/all'
import Out from '@/components/out'
import In from '@/components/in'
import Home from '@/components/home'
import Other from '@/components/other'
import Map from '@/components/map'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'album',
    //   component: album,
    //   children:[
    //     {path:'/',component:All},
    //     {path:'/album/all',component:All},
    //     {path:'/album/out',component:Out},
    //     {path:'/album/in',component:In},
    //     {path:'/album/home',component:Home},
    //     {path:'/album/other',component:Other}
    //   ]
    // },
    {
      path:"/",
      name:"order",
      component:order,
      children:[
          {path:'/',component:Map},
          {path:'/order/map',component:Map}
        ]
    }
  ]
})
